package com.example.lbstest.impl;

import com.example.lbstest.mapper.TeacherMapper;
import com.example.lbstest.pojo.Teacher;
import com.example.lbstest.service.TeacherMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherMapperServiceImpl implements TeacherMapperService {
    @Autowired
    TeacherMapper teacherMapper;

    @Override
    public Teacher login(String number, String password) {
        return teacherMapper.login(number,password);
    }

    @Override
    public int changePassword(String number, String password) {
        return teacherMapper.changePassword(number, password);
    }

    @Override
    public Teacher selectOneTeacher(String teacher_id) {
        return teacherMapper.selectOneTeacher(teacher_id);
    }
}
